<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		$.ajax({
			type:"POST",
			url:"localhost/1000",
			data:{
				"keyword":"曾国藩"
			},
			contentType:"application/json;charset=utf-8",
			dataType:"jsonp",
			success:function(data){
				console.log("访问成功");
				console.log(data);
				for (var i = 0; i < data.length; i++) {
					var d = data[i];
					console.log("ID："+d.id+"\t价格："+d.p);
				}
				try{
					
				}catch(e){
					//TODO handle the exception
				}
			},
			error:function(e){
				console.log("访问失败")
			}
		})
	</script>
</html>
